package com.simulated.communication.mapper;

import com.simulated.communication.pojo.Users;
import com.simulated.communication.utils.MyMapper;
import com.simulated.communication.viewobject.FriendRequestVo;
import com.simulated.communication.viewobject.MyFriendsVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author Markburt
 * @Description :用于接收添加好友者的信息
 * @DATE: 2020/5/4
 * @TIME: 下午 04:44
 * @YEAR: 2020
 * @Version :
 **/
@Mapper
public interface UsersMapperCustom extends MyMapper<Users> {

    /**
     * 查询好友请求列表
     * @param acceptId
     * @return
     */
    List<FriendRequestVo> queryFriendRequestList(String acceptId);


    /***
     * 查询我的朋友
     * @param myUserId
     * @return
     */
    List<MyFriendsVo> queryMyFriends(String myUserId);


    /***
     * 批量更新消息为已签收
     * @param msgIdList
     */
    void updateSignMsg(List<String> msgIdList);
}
